<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-html 指令</title>
  <script src="../../../../js/vue.global.js"></script>
</head>
<body>
<div id="root">
  <h2>abcque</h2>
  <div>{{ inner }}</div>
  <div v-html="inner"></div>
</div>
<script>
  const app = Vue.createApp({
    data(){
      return {
        inner: "<h2>abcque</h2>"
      }
    }
  })

  app.mount("#root")
</script>
</body>
</html>